package com.atguigu.gmall.pms.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * <p>
 *
 * </p>
 * CreateBy  Malingzhao
 *
 * @date 2020/9/3
 */
@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {

        //允许所有路径范文
        http.authorizeRequests().antMatchers("/**").permitAll();
       //禁用csrf
        http.csrf().disable();
    }
}
